#pragma once

#include "resource.h"

#include <atldlgs.h>
#include <atlframe.h>

class FontPropPage : public CPropertyPageImpl< FontPropPage >
                   , public CDialogResize< FontPropPage >
{
public:
    FontPropPage(void);

    enum { IDD = IDD_FONT_PAGE };

    BEGIN_DLGRESIZE_MAP(FontPropPage)
        BEGIN_DLGRESIZE_GROUP()
        DLGRESIZE_CONTROL(IDC_FONT_COMBO, DLSZ_SIZE_X )
        DLGRESIZE_CONTROL(IDC_SIZE_COMBO, DLSZ_MOVE_X )
        DLGRESIZE_CONTROL(IDC_SIZE_STATIC, DLSZ_MOVE_X )
        END_DLGRESIZE_GROUP()
    END_DLGRESIZE_MAP()

    BEGIN_MSG_MAP(FontPropPage)
        MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
        CHAIN_MSG_MAP(CPropertyPageImpl< FontPropPage >)
        CHAIN_MSG_MAP(CDialogResize< FontPropPage >)
    END_MSG_MAP()

    LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    {
        DlgResize_Init(FALSE);
        return TRUE;
    }

public:
    ~FontPropPage(void);
};
